package com.ljj.service.impl;

import com.ljj.pojo.CE;
import com.ljj.mapper.CEMapper;
import com.ljj.service.CEService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author LJJ
 * @since 2020-07-11
 */
@Service
public class CEServiceImpl   implements CEService  {

    @Autowired
    private CEMapper ceMapper;

    @Override
    public List<Integer> queryEByC(int id) {
        List<Integer> integers = ceMapper.queryEByC(id);
        return integers;
    }

    @Override
    public Set<Integer> queryEid() {
        Set<Integer> integers = ceMapper.queryEid();
        return integers;
    }


    @Override
    public int insertCE(CE ce) {
        return ceMapper.insert(ce);
    }

    @Override
    public int deleteCEByEid(int id) {
        return ceMapper.deleteCEByEid(id);
    }

    @Override
    public int deleteCEByCE(CE ce) {
        return ceMapper.deleteCEByCE(ce);
    }
}
